package com.mashibing.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mashibing.common.utils.PageUtils;
import com.mashibing.mall.product.entity.AttrEntity;
import com.mashibing.mall.product.param.AttrGroupRelationParam;
import com.mashibing.mall.product.param.AttributeParam;
import com.mashibing.mall.product.vo.AttrResponseVo;
import com.mashibing.mall.product.vo.AttrVO;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author ROGzhongyang
 * @email inspiron149@163.com
 * @date 2024-11-18 18:50:24
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void add(AttributeParam attributeParam);

    Object getRelationAttr(Long attrgroupId);

    void unRelateAttr(List<AttrGroupRelationParam> params);

    PageUtils getNoAttrRelation(Long attrgroupId, Map<String, Object> params);

    PageUtils queryBasePage(Map<String, Object> params, Long catelogId, String attrType);

    AttrResponseVo detail(Long attrId);

    void edit(AttrVO attrVO);

}

